package cn.itcast.ssm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Description:
 * Created by t410 on 2017/7/6.
 */
@Controller
@RequestMapping(value="/restful")
public class RestfulMapping {
    @RequestMapping(value="/demo1/{id}")
    public String demo1(@PathVariable("id") String id){
        System.out.println(id);
        return "success";
    }
}
